package dashboard

import (
	"ginweb/common"
	"github.com/gin-gonic/gin"
	"net/http"
)

func Dashboard(c *gin.Context) {

	if !common.CheckLogin(c) {
		c.Redirect(302, "/login")
	}

	c.HTML(http.StatusOK, "dashboard.html", gin.H{
		"title": "Main website",
	})
}
